﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApp1.AdminSection
{
    /// <summary>
    /// Summary description for SearchAPI
    /// </summary>
    public class SearchAPI : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";

            var feed = new NewsMine.DomainObjects.FeedItem { Title = "test titlle", Description = "test description" };

            var buff = NewsMine.Utilities.ObjectByteArrayConverter.ObjectToByteArray(feed);
            context.Response.Write(buff);
            context.Response.Flush();
            //context.Response.Close();
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}